package com.masz;

import com.masz.transactional.TransactionalTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Ma.sz 2023/2/13 18:02
 */
@RestController
public class TestController {

    @Autowired
    TransactionalTestService transactionalTestService;

    @RequestMapping("/transTest")
    public String transactionTest(){
        transactionalTestService.a();
        return "oK";
    }

}
